<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#deleteNoticeBtn").click(function(){
			//alert("test");
			confirm("게시글을 삭제하시겠습니까?");
		});
	});
</script>
</head>  
<body>
<center>
<table>
<tr>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">이름 </font></td>
	<td ><input type="text" value="${requestScope.lbvo.name }" id="name"  name="name" readonly="readonly"> </td>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">학년</font> </td>
	<td><input type="text" value="${requestScope.lbvo.grade }" id="grade"  name="grade" readonly="readonly"> </td>
</tr>
<tr>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">성별</font></td>
	<td><input type="text" value="${requestScope.lbvo.gender }" id="gender"  name="gender" readonly="readonly"></td>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">전화번호</font></td>
	<td><input type="text" value="${requestScope.lbvo.tel }" id="tel"  name="tel" readonly="readonly"></td>
</tr>
<tr>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">원하는 수업</font></td>
	<td><input type="text" value="${requestScope.lbvo.hopesubject }" id="hopesubject"  name="hopesubject" readonly="readonly"></td>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">연결여부</font></td>
	<td><input type="text" value="${requestScope.lbvo.connectstate }" readonly="readonly"></td>
</tr>
<tr>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">원하는 요일</font></td>
	<td><input type="text" value="${requestScope.lbvo.hopeday }" name="hopeday" ></td>
	<td bgcolor="#E6E6E6" width="100" align="center"><font size="2">원하는 시간</font></td>
	<td><input type="text" value="${requestScope.lbvo.hopetime }" name="hopetime" ></td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td></td>
	<c:if test="${sessionScope.mvo.membertype=='t' }">
	<td><input type="button" value="찜하기"></td>
	</c:if>
</tr>
</table>
<hr>
<table>
<tr>
	<td>번호:${requestScope.lbvo.lessonno }</td><td>제목:${requestScope.lbvo.title }</td>
</tr>
<tr>
	<td>작성일시:${requestScope.lbvo.datePosted }</td><td>조회수:${requestScope.lbvo.hits }</td>
</tr>
<tr>
	<td>작성자 : ${requestScope.lbvo.studentid }</td>
</tr>
<tr>
	<td colspan="2"><textarea rows="20" cols="50">${requestScope.lbvo.content }</textarea></td>
</tr>
<tr>

	<td colspan="2" align="center">
	<a href="lessonBoardSerch.do"><input type="button" value="목록"></a>
<c:choose>
<c:when test="${sessionScope.mvo.id==requestScope.lbvo.studentid }">
	<a href="updateLessonPage.do?lessonno=${requestScope.lbvo.lessonno }&studentid=${requestScope.lbvo.studentid}"><input type="button" value="수정하기"></a>
	<a href="deleteLessonContent.do?lessonno=${requestScope.lbvo.lessonno }"><input type="button" value="삭제" id="deleteNoticeBtn"></a>
</c:when>
</c:choose>
	
	
	</td>
</tr>
</table>
</center>
</body>
</html>